package com.cicc.wm.lock;

/**
 * 锁注册中心
 */
public interface LockRegistry {
    /**
     * 获取锁
     *
     * @param lockKey 锁key
     * @return 锁
     */
    DistributedLock obtain(String lockKey);

    boolean isActive();
}
